// 头部
#header {
    width: 100%;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;

    .navbar {
        border-radius: 0;
        margin-bottom: 0;

        .navbar-brand {
            font-family: OSBold;
            color: #fff;
            text-transform: uppercase;
            line-height: 30px
        }
    }

    .nav li a {
        color: #fff;
        text-transform: uppercase;
        height: 60px;
        line-height: 30px;
        border-bottom: 3px solid transparent;
        transition: all linear 0.3s;

        &:hover {
            border-bottom: 3px solid #fcac45;
        }
    }

    @media screen and (max-width:780px) {
        .navbar-header .navbar-brand {
            line-height: 20px;
        }

    }

    @media screen and (max-width:450px) {
        .navbar .container .collapse .nav {
            text-align: center;

            li {
                overflow: hidden;
            }

            li a:hover {
                transform: scaleX(1.2);
            }
        }
    }

}

// 第一部分
#main {
    width: 100%;
    height: 800px;
    overflow: hidden;
    background-size: auto;
    background-image: url(../images/R-C.jpg);
    background-repeat: no-repeat;

    .maintitle {
        width: 100%;
        height: auto;
        text-align: center;
        margin: 20em auto;

        h2 {
            font-size: 3.5em;
            color: #fff;
            font-family: OSLight;
            text-transform: uppercase;

            span {
                color: #fcac45;
                font-family: OSBold;
            }
        }

        .mainword {
            color: #fff;
            font-family: OSLight;
            font-size: 1.5em;

            .mainwordbold {
                color: #fff;
                font-family: OSBold;
            }
        }

        @media screen and (max-width:785px) {
            & {
                margin: 15em auto 10em;
            }
        }
    }

    .maincircle {
        width: 4em;
        height: 4em;
        border-radius: 100%;
        border: 2px solid #bfbfbf;
        margin: 0px auto;
        text-align: center;
        transition: all linear .3s;
        overflow: hidden;

        a {
            display: inline-block;
            width: 100%;
            height: 100%;
            color: #fff;
            text-decoration: none;
            font-family: OSBold;
            font-size: 2.5em;
        }

        &:hover {
            transform: translateY(-10px);
            box-shadow: 0px 3px 20px #fff;
        }
    }
}

// 第二部分
#about {
    width: 100%;
    height: auto;
    background-color: #fff;
    padding: 5em 0 3em;
    text-align: center;
    .container{
        display: flex;
        .left {
            flex-shrink: 0;
            width: 60%;
        }
    
        .right {
            width: 40%;
            text-align: left;
            .title {
                p {
                    font-size: 2em;
                    color: #999999;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                }
    
                h3 {
                    font-size: 2.5em;
                    color: #333333;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
    
                    span:first-child {
                        border-bottom: 4px solid #fcac45;
                        padding-bottom: 0.3em;
                    }
    
                    span:last-of-type {
                        font-family: OSBold;
                    }
                }
            }
    
            .desc {
                font-size: 1.3em;
                color: #333333;
                font-family: OSLight;
                margin-top: 1em;
            }
        }
    
        ul {
            margin-top: 1em;
    
            li {
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
    
                span:nth-child(1) {
                    margin-right: 1em;
                }
    
                span:nth-child(2) {
                    font-size: 1.3em;
                    color: #5a5a5a;
                    font-family: OSBold;
                }
    
                span:nth-child(3) {
                    font-family: OSLtalic;
                    font-size: 1.3em;
                    color: #5a5a5a;
    
                }
            }
        }
    
        .buttondiv {
            margin-top: 2.8em;
            width: 14em;
            height: 3.5em;
            border: 1px solid #999999;
            border-radius: 3px;
            transition: .5s;
            display: flex;
            justify-content: space-evenly;
            align-items: center;
    
            .btn {
                font-family: OSLight;
                color: #616161;
                display: flex;
                align-items: center;
                justify-content: center;
            }
    
            .btn p {
                margin-left: 1em;
            }
    
            &:hover {
                box-shadow: 0px 3px 10px 0px #bfbfbf;
                transform: translateY(-20px);
            }
    
        }
    }
    @media screen and (max-width:1000px) {
        &{
            padding: 2em 0;
        }
        .container{
            width: 100%;
            .left {
                display: none;
            }
    
            .right {
                width: 100%;
    
                .title {
                    h3 {
                        font-size: 1.8em;
                    }
    
                    p {
                        font-size: 1.4em;
                    }
                }
    
                .desc {
                    font-size: 1em;
                }
            }
    
            ul li {
                span:nth-child(2) {
                    font-size: 1em;
                }
    
                span:nth-child(3) {
                    font-size: 1em;
                }
            }
    
            .buttondiv {
                margin-bottom: 3em;
            }
        }
        }
        

    @media screen and (max-width:450px) {
        .container .right .title h3 {
            font-size: 1.5em;
        }
    }
}

// 第三部分
.intro {
    width: 100%;
    height: auto;
    background-color: #000000;
    padding: 5em 0 3em;

    .title {
        width: 100%;
        text-align: center;
        background-image: url(../images/title-background.png);
        background-repeat: no-repeat;
        background-position: center bottom;

        h3 {
            font-size: 3em;
            color: #fff;
            font-family: OSLight;
            line-height: 2.5em;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;

            span {
                font-family: OSBold;
            }
        }
    }

    .four {
        width: 90%;
        display: flex;
        margin: 3em auto;

        .demo {
            margin: auto 2em;
            text-align: center;
            width: 22%;

            img {
                border-radius: 100%;
                width: 15em;
                height: 15em;
                flex-shrink: 0;
            }

            .font {
                text-align: center;
            }

            h1 {
                color: #fff;
                font-family: OSBold;
            }

            h3 {
                color: #fff;
                font-family: OSLight;
            }

            p {
                color: #fff;
                font-family: OSLight;
                margin-top: 2em;
                height: 6em;
                overflow-x: hidden;
                overflow-y: scroll;
            }
        }
    }

    .page {
        width: 100%;
        margin: 2em auto;
        display: flex;
        justify-content: center;
        align-items: center;

        input {
            display: none;
        }

        label {
            width: 0.5em;
            height: 0.5em;
            background-color: #fff;
            padding: 0;
            margin: 0 0.5em;
            cursor: pointer;
            transition: 0.5s;

            &:hover {
                background-color: #fcac45;
            }
        }

        #chk1:checked+.choice {
            background-color: #fcac45;
        }

        #chk2:checked+.choice {
            background-color: #fcac45;
        }

        #chk3:checked+.choice {
            background-color: #fcac45;
        }
    }

    @media screen and (max-width:1150px) {
        & {
            padding: 1em 0;
        }

        .four {
            width: 100%;
            flex-direction: column;

            .demo {
                width: 95%;
                display: flex;
                align-items: center;

                img {
                    width: 10em;
                    height: 10em;
                    border-radius: 0;
                    margin: 1em;
                }

                .font {
                    text-align: left;

                    p {
                        margin-top: 1em;
                    }
                }
            }
        }

        .page {
            margin: 2em auto 2em;
        }
    }

    @media screen and (max-width:450px) {

        .title {
            h3 {
                font-size: 2em;
                padding-bottom: 1em;
            }
        }

        .four {
            .demo {
                margin: 1em;

                img {
                    width: 8em;
                    height: 8em;
                }

                .font {
                    h1 {
                        font-size: 1em;
                    }

                    p {
                        margin-top: 0;
                    }
                }

            }
        }
    }
}

// 第四部分
.services {
    width: 100%;
    height: auto;
    background-color: #fff;
    padding: 5em 0 3em;
    text-align: center;

    .title {
        width: 100%;
        text-align: center;
        background-image: url(../images/title-background.png);
        background-repeat: no-repeat;
        background-position: center bottom;

        h3 {
            font-size: 3em;
            color: #222222;
            font-family: OSLight;
            line-height: 2.5em;
            text-transform: uppercase;
            font-family: OSLight;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;

            span {
                font-family: OSBold;
            }
        }
    }

    .word {
        width: 80%;
        margin: 3em auto;
        color: #8e8e8e;
        font-size: 1.3em;
        font-family: OSLtalic;
    }

    .four {
        width: 80%;
        display: flex;
        margin: 3em auto;

        .demo {
            margin: auto 1em;
            display: flex;
            flex-wrap: wrap;
            flex-direction: column;
            justify-content: center;
            align-items: center;

            .font {
                text-align: center;
            }

            .pic {
                width: 6.5em;
                height: 6.5em;
                border-radius: 100%;
                border: 6px solid #fcac45;
            }

            h1 {
                text-transform: uppercase;
                font-family: OSBold;
                font-size: 1.5em;
            }
        }
    }

    @media screen and (max-width:1000px) {
        & {
            padding: 2em 0;
        }

        .title h3 {
            font-size: 2em;
            padding-bottom: 1em;
        }

        .word {
            width: 90%;
            margin: 2em auto;
            text-align: center;
        }

        .four {
            width: 100%;
            flex-direction: column;
            margin: 2em auto;

            .demo {
                display: flex;
                flex-direction: row;
                justify-content: center;
                align-items: center;
                margin: 1em;

                .font {
                    text-align: left;
                    width: 70%;
                    margin-left: 1em;

                    h1 {
                        font-size: 1.2em;
                    }
                }
            }

        }
    }

    @media screen and (max-width:450px) {
        .title h3 {
            font-size: 1.5em;
            line-height: 3.5em;
        }

        .word {
            font-size: 1em;
        }

        .four {
            .demo {
                margin: 1em;

                .pic {
                    width: 5em;
                    height: 5em;
                }
            }
        }
    }
}

//第五部分
.clients {
    width: 100%;
    height: auto;
    background-color: #000000;
    padding: 5em 0 3em;

    .container {
        width: 80%;
        height: auto;

        .title {
            width: 100%;
            text-align: center;
            background-image: url(../images/title-background.png);
            background-repeat: no-repeat;
            background-position: center bottom;

            h3 {
                font-size: 3em;
                color: #fff;
                font-family: OSLight;
                line-height: 2.5em;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;

                span {
                    font-family: OSBold;
                }
            }
        }

        .brand {
            width: 100%;
            text-align: center;
            padding-top: 4em;

            img {
                margin: 1em 1em;
            }
        }

        .page {
            width: 100%;
            margin: 5em auto 2em;
            display: flex;
            justify-content: center;
            align-items: center;

            input {
                display: none;
            }

            label {
                width: 0.5em;
                height: 0.5em;
                background-color: #fff;
                padding: 0;
                margin: 0 0.5em;
                cursor: pointer;
                transition: 0.5s;

                &:hover {
                    background-color: #fcac45;
                }
            }

            #chk4:checked+.choice {
                background-color: #fcac45;
            }

            #chk5:checked+.choice {
                background-color: #fcac45;
            }

            #chk6:checked+.choice {
                background-color: #fcac45;
            }
        }
    }

    @media screen and (max-width:1000px) {
        & {
            padding: 2em 0;
        }

        .container .title h3 {
            font-size: 2em;
            line-height: 3.5em;
        }
    }

    @media screen and (max-width:450px) {
        .container {
            .title h3 {
                font-size: 1.4em;
                padding-bottom: 1em;
            }

            .brand {
                padding-top: 2em;
            }

            .page {
                margin: 2em auto 2em;
            }
        }
    }
}

// 第六部分
.work {
    width: 100%;
    height: auto;
    background-color: #fff;
    padding: 5em 0 3em;
    text-align: center;

    .title {
        width: 100%;
        text-align: center;
        background-image: url(../images/title-background.png);
        background-repeat: no-repeat;
        background-position: center bottom;

        h3 {
            font-size: 3em;
            color: #222222;
            font-family: OSLight;
            line-height: 2.5em;
            text-transform: uppercase;
            font-family: OSLight;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;

            span {
                font-family: OSBold;
            }
        }
    }

    p {
        width: 100%;
        margin: 3em auto;
        color: #8e8e8e;
        font-size: 1.3em;
        font-family: OSLtalic;
    }

    .desc {
        width: 100%;

        .top {
            display: flex;
            justify-content: space-between;
            align-items: center;

            .left {
                width: 50%;
                text-align: left;
                font-size: 1.5em;
                font-family: OSBold;
                padding: 1em 0;
                text-transform: uppercase;
            }

            .right {
                width: 50%;
                text-align: right;
                padding: 1em 0;
                font-size: 1.5em;
                font-family: OSLight;

                span:first-child {
                    font-family: OSBold;
                }
            }

            .choice {
                display: none;

                select {
                    width: 10em;
                    height: 2em;
                    text-indent: 1em;
                }
            }
        }

        .imgs {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;

            .box {
                margin: 1em auto;
                width: 19em;
                position: relative;
                overflow: hidden;

                img {
                    width: 100%;
                }

                .cover {
                    width: 100%;
                    height: 100%;
                    position: absolute;
                    background-color: #222222;
                    text-align: center;
                    top: 300px;
                    color: #fff;
                    transition: all .5s linear;

                    h3 {
                        font-size: 1.4em;
                        font-family: OSBold;
                        padding-top: 3em;
                        text-transform: uppercase;
                        white-space: nowrap;
                        overflow: hidden;
                        text-overflow: ellipsis;
                    }

                    p {
                        font-size: 1em;
                        font-family: OSLight;
                        margin: 0 auto;
                    }

                    img {
                        width: 2.5em;
                        height: 2.5em;
                        margin-top: 3em;
                    }
                }

                &:hover {
                    .cover {
                        top: 0;
                    }
                }
            }
        }
    }

    @media screen and (max-width:1000px) {
        & {
            padding: 2em 0;
        }

        .container {
            width: 100%;

            .title h3 {
                font-size: 2em;
                line-height: 3.5em;
            }

            p {
                width: 100%;
                margin: 2em auto;
                text-align: center;
                font-size: 1em;
            }

            .desc {
                .top {
                    .right {
                        display: none;
                    }

                    .choice {
                        display: block;
                    }
                }

                .imgs {
                    .box {
                        width: 40%;
                    }
                }
            }
        }
    }

    @media screen and (max-width:600px) {
        .container .desc .imgs .box .cover {
            h3 {
                padding-top: 2em;
            }

            img {
                margin-top: 2em;
            }
        }
    }

    @media screen and (max-width:550px) {
        .container .desc .imgs .box .cover {
            h3 {
                font-size: 1.1em;
                padding-top: 3em;
            }

            p {
                font-size: 1em;
            }

            img {
                margin-top: 1em;
            }
        }
    }

    @media screen and (max-width:450px) {
        .container {
            .title h3 {
                font-size: 1.4em;
                padding-bottom: 1em;
            }

            .desc {
                .top {
                    .left {
                        font-size: 1em;
                    }
                }

                .imgs .box .cover {
                    h3 {
                        font-size: 0.8em;
                        padding-top: 2em;
                    }

                    p {
                        font-size: 0.6em;
                    }

                    img {
                        margin-top: 0.5em;
                    }
                }
            }
        }
    }
}

//第七部分
.testimonials {
    width: 100%;
    height: auto;
    background-color: #000000;
    padding: 5em 0 3em;

    .container {
        text-align: center;

        .title {
            width: 100%;
            text-align: center;
            background-image: url(../images/title-background.png);
            background-repeat: no-repeat;
            background-position: center bottom;

            h3 {
                font-size: 3em;
                color: #fff;
                font-family: OSLight;
                line-height: 2.5em;
                text-transform: uppercase;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;

                span {
                    font-family: OSBold;
                }
            }
        }

        p {
            color: #fff;
            text-transform: uppercase;
            font-size: 1.2em;
            margin-top: 3em;
        }

        .person {
            text-align: center;
            color: #fff;
            font-size: 1em;
            margin-top: 2em;

            span {
                font-family: OSLight;
            }
        }

        .page {
            width: 100%;
            margin: 2em auto;
            display: flex;
            justify-content: center;
            align-items: center;

            div {
                width: 0.5em;
                height: 0.5em;
                background-color: #fff;
                padding: 0;
                margin: 0 0.5em;
                cursor: pointer;
                transition: 0.5s;

                &:hover {
                    background-color: #fcac45;
                }
            }
        }
    }

    @media screen and (max-width:1000px) {
        & {
            padding: 2em 0;
        }

        .container .title h3 {
            font-size: 2em;
            line-height: 3.5em;
        }
    }

    @media screen and (max-width:450px) {
        .container {
            .title h3 {
                font-size: 1.4em;
                padding-bottom: 1em;
            }

            p {
                font-size: 1em;
            }

            .page {
                margin: 2em auto 2em;
            }
        }
    }
}

// 第八部分
.contact {
    width: 100%;
    height: auto;
    background-color: #fff;
    padding: 5em 0 3em;
    text-align: center;

    .container {
        .title {
            width: 100%;
            text-align: center;
            background-image: url(../images/title-background.png);
            background-repeat: no-repeat;
            background-position: center bottom;
            text-align: center;

            h3 {
                font-size: 3em;
                color: #222222;
                font-family: OSLight;
                line-height: 2.5em;
                text-transform: uppercase;
                font-family: OSLight;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;

                span {
                    font-family: OSBold;
                }
            }
        }

        p {
            width: 100%;
            margin: 3em auto;
            color: #8e8e8e;
            font-size: 1.3em;
            font-family: OSLtalic;
        }

        .formtext {
            width: 100%;

            form {
                width: 100%;

                .top {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;

                    .left {
                        width: 48%;

                        p {
                            margin: 0;
                            font-size: 1.5em;
                            font-family: OSLight;
                            text-align: left;

                            sup {
                                color: red;
                            }
                        }

                        .inputbox {
                            text-align: left;
                            width: 100%;

                            input {
                                width: 100%;
                                height: 3em;
                                line-height: 3em;
                                text-indent: 1em;
                                font-size: 1.2em;
                            }
                        }
                    }

                    .right {
                        width: 48%;

                        p {
                            margin: 0;
                            font-size: 1.5em;
                            font-family: OSLight;
                            text-align: left;

                            sup {
                                color: red;
                            }
                        }

                        .inputbox {
                            text-align: left;
                            width: 100%;

                            input {
                                width: 100%;
                                height: 3em;
                                line-height: 3em;
                                text-indent: 1em;
                                font-size: 1.2em;
                            }
                        }
                    }
                }

                .message {
                    margin-top: 2em;
                    text-align: left;

                    p {
                        margin: 0;
                        font-size: 1.5em;
                        font-family: OSLight;
                        text-align: left;

                        sup {
                            color: red;
                        }
                    }

                    textarea {
                        width: 100%;
                        height: 15em;
                        text-indent: 1em;
                        font-size: 1.2em;
                    }
                }

                .send {
                    width: 100%;
                    text-align: right;
                    margin-top: 3em;

                    button {
                        background-color: #fcac45;
                        color: #fff;
                        border: 0;
                        width: 10em;
                        height: 2em;
                        line-height: 2em;
                        font-size: 1.5em;

                        &:hover {
                            box-shadow: 0px 3px 10px 0px #bfbfbf;
                            transform: translateY(-10px);
                        }
                    }
                }
            }
        }
    }

    @media screen and (max-width:1000px) {
        & {
            padding: 2em 0;
        }

        .container {
            width: 100%;

            .title h3 {
                font-size: 2em;
                line-height: 3.5em;
            }

            p {
                width: 100%;
                margin: 2em auto;
                text-align: center;

            }

            .formtext {
                form {
                    .top {
                        display: block;

                        .left {
                            width: 100%;
                        }

                        .right {
                            width: 100%;
                        }
                    }

                    .message {
                        margin-top: 1em;
                    }

                    .send {
                        text-align: center;
                    }
                }
            }
        }

    }

    @media screen and (max-width:450px) {
        .container {
            .title h3 {
                font-size: 1.4em;
                padding-bottom: 1em;
            }

            p {
                font-size: 1em;
            }

            .formtext {
                form {
                    .top {
                        .left {
                            p {
                                font-size: 1.2em;
                            }

                            .inputbox {
                                input {
                                    font-size: 1em;
                                    height: 2em;
                                }
                            }
                        }

                        .right {
                            p {
                                font-size: 1.2em;
                            }

                            .inputbox {
                                input {
                                    font-size: 1em;
                                    height: 2em;
                                }
                            }
                        }
                    }

                    .message {
                        p {
                            font-size: 1.2em;
                        }

                        textarea {
                            font-size: 1em;
                            height: 10em;
                        }
                    }

                    .send {
                        margin-top: 1.5em;

                        button {
                            height: 2em;
                            line-height: 2em;
                            font-size: 1em;
                        }
                    }
                }
            }
        }
    }
}

// 第九部分
.foot {
    width: 100%;
    height: auto;
    background-color: #000000;
    padding: 3em;
    text-align: center;

    .container {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        &::before,&::after{
            content: "";
            display: none;
        }
        .left {
            p {
                color: #fff;
                font-family: OSLight;
                font-size: 1.2em;
                

                span {
                    font-family: OSBold;
                }
            }

        }
        .right {
            .icons{
                width: 45%;
                display: flex;
                justify-content: space-around;
                align-items: center;

                .circle{
                    width: 3em;
                    height: 3em;
                    border: 2px solid #9f9f9f;
                    border-radius: 100%;
                    margin: 0 1em;
                    flex-shrink: 0;
                    img{
                        width: 100%;
                        height: 100%;
                    }
                    &:hover{
                        &:hover {
                            transform: translateY(-10px);
                            box-shadow: 0px 3px 20px #fff;
                        }
                    }
                }
            }
        }
    }
    @media screen and (max-width:1000px) {
        .container{
            display: block;
            .left{
                width: 100%;
                p{
                    font-size: 1em;
                }
            }
            .right{
                width: 100%;
                .icons{
                    width: 100%;
                    margin: 1em 0;
                    justify-content: center;
                    .circle{
                        margin: 0 0.5em;
                        width: 2em;
                        height: 2em;
                    }
                }

            }
        }
    }
}

// 返回顶部
.up{
    position: fixed;
    width: 80px;
    height: 80px;
    bottom: 30px;
    right: 30px;
    a{
        display: inline-block;
        width: 100%;
        height: 100%;
    }
    img{
        width: 100%;
        height: 100%;
    }
    @media screen and (max-width:1000px) {
        &{
            width: 50px;
            height: 50px;
        }
    }
    @media screen and (max-width:450px) {
        &{
            right: 20px;
        }
        
    }
}